<template>
  <div>
    <div class="search-title">
      <van-icon name="arrow-left" color="#D8D8D8FF" @click="$router.back(-1)" />
      <van-search placeholder="请输入搜索关键词" v-model="value" @search="onSearch" />
      <van-tag round color="#C30C22FF" @click="onSearch" class="search-box">搜索</van-tag>
    </div>
    <div class="store-list">
      <storeList></storeList>
    </div>
  </div>
</template>

<script>
import storeList from "./components/storeList.vue";
export default {
  name: "searchList",
  components: { storeList },
  data() {
    return {
      value: ""
    };
  },
  created() {
    this.$store.commit("hideLoading");
  },
  methods: {
    onSearch() {}
  }
};
</script>

<style lang='less' scoped>
.search-title {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  z-index: 999;
  background-color: #fff;
  width: 100%;
  height: 78px;
  padding: 20px;
  border-bottom: 1px solid #dfdfdf80;
}
/deep/.van-search {
  width: 263px;
  height: 36px;
  padding: 0;
  margin-right: 12px;
  font-weight: 700;
  color: #000000ff;
}
/deep/.van-hairline--surround {
  margin-bottom: 14px;
  margin-right: 12px;
}
.store-list {
  margin-top: 78px;
}
.search-box{
  display: inline-block;
  width: 45px;
  height: 25px;
  line-height: 25px;
  text-align: center;
}
</style>